package co.yixiang.modules.shop.service.dto;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**供应商
* @author frq
* @date 2020-06-12
*/
@Data
public class YxSupplierDto implements Serializable {

    /** 用户id */
    private Integer id;

    /**名称*/
    private String name;

    /**经营方式*/
    private String runType;

    /**编码*/
    private String code;

    /**区域*/
    private String area;

    /**联系人*/
    private String contactor;

    /**手机*/
    private String phone;

    /**电话*/
    private String tel;

    /**传真*/
    private String fax;

    /**地址*/
    private String address;

    /**开户行*/
    private String bankName;

    /**银行账号*/
    private String bankAccount;

    /**添加人*/
    private String adder;

    /**添加时间*/
    private Date addTime;



    public void copy(YxSupplierDto source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}